3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to determine the distance between two points. QuickDraw 3D also provides routines that you can use to determine the square of the distance between two points. These distance-squared routines are much faster than the simple distance routines and are therefore recommended for situations in which only relative distances are important to you.
You can use the Q3Point2D_Distance function to determine the distance between two two-dimensional points.
float Q3Point2D_Distance (
const TQ3Point2D *p1,
const TQ3Point2D *p2);
You can use the Q3Param2D_Distance function to determine the distance between two two-dimensional parametric points.
float Q3Param2D_Distance (
const TQ3Param2D *p1,
const TQ3Param2D *p2);
You can use the Q3Point3D_Distance function to determine the distance between two three-dimensional points.
float Q3Point3D_Distance (
const TQ3Point3D *p1,
const TQ3Point3D *p2);
You can use the Q3RationalPoint3D_Distance function to determine the distance between two three-dimensional rational points.
float Q3RationalPoint3D_Distance (
const TQ3RationalPoint3D *p1,
const TQ3RationalPoint3D *p2);
You can use the Q3RationalPoint4D_Distance function to determine the distance between two four-dimensional rational points.
float Q3RationalPoint4D_Distance (
const TQ3RationalPoint4D *p1,
const TQ3RationalPoint4D *p2);
You can use the Q3Point2D_DistanceSquared function to determine the square of the distance between two two-dimensional points.
float Q3Point2D_DistanceSquared (
const TQ3Point2D *p1,
const TQ3Point2D *p2);
You can use the Q3Param2D_DistanceSquared function to determine the square of the distance between two two-dimensional parametric points.
float Q3Param2D_DistanceSquared (
const TQ3Param2D *p1,
const TQ3Param2D *p2);
You can use the Q3Point3D_DistanceSquared function to determine the square of the distance between two three-dimensional points.
float Q3Point3D_DistanceSquared (
const TQ3Point3D *p1,
const TQ3Point3D *p2);
You can use the Q3RationalPoint3D_DistanceSquared function to determine the square of the distance between two rational three-dimensional points.
float Q3RationalPoint3D_DistanceSquared (
const TQ3RationalPoint3D *p1,
const TQ3RationalPoint3D *p2);
You can use the Q3RationalPoint4D_DistanceSquared function to determine the square of the distance between two rational four-dimensional points.
float Q3RationalPoint4D_DistanceSquared (
const TQ3RationalPoint4D *p1,
const TQ3RationalPoint4D *p2);
Previous | QD3D Book | Overview | Chapter Contents | Next |